package org.footito.android.ui.activity;

import org.footito.android.R;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class AboutDevActivity extends Activity {
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.aboutdev);
		Button bSeeBlog = (Button) findViewById(R.id.buttonmyblog);
		bSeeBlog.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				String url = "http://www.juliendelrio.fr";  
				Intent i = new Intent(Intent.ACTION_VIEW);  
				i.setData(Uri.parse(url));  
				startActivity(i);  
			}
		});
		Button bSeeFrandroid = (Button) findViewById(R.id.buttonmyfrandroid);
		bSeeFrandroid.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				String url = "http://www.frandroid.com";  
				Intent i = new Intent(Intent.ACTION_VIEW);  
				i.setData(Uri.parse(url));  
				startActivity(i);  
			}
		});
		Button bSeeLevelUp = (Button) findViewById(R.id.buttonmylevelup);
		bSeeLevelUp.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				String url = "http://www.levelupstudio.com";  
				Intent i = new Intent(Intent.ACTION_VIEW);  
				i.setData(Uri.parse(url));  
				startActivity(i);  
			}
		});
		Button bSeePAUG = (Button) findViewById(R.id.buttonmypaug);
		bSeePAUG.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				String url = "http://www.paug.fr";  
				Intent i = new Intent(Intent.ACTION_VIEW);  
				i.setData(Uri.parse(url));  
				startActivity(i);  
			}
		});
		Button bSeeTwitter = (Button) findViewById(R.id.buttonmytwitter);
		bSeeTwitter.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				String url = "https://twitter.com/#!/JulienDelRio";  
				Intent i = new Intent(Intent.ACTION_VIEW);  
				i.setData(Uri.parse(url));  
				startActivity(i);  
			}
		});
	}

}
